package com.bpf.base.dao.system;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.bpf.base.model.system.Dict;
import com.bpf.base.model.system.DictExample;

public interface DictMapper {
	int countByExample(DictExample example);

	int deleteByExample(DictExample example);

	int deleteByPrimaryKey(Integer dictId);

	int insert(Dict record);

	int insertSelective(Dict record);

	List<Dict> selectByExample(DictExample example);

	Dict selectByPrimaryKey(Integer dictId);

	int updateByExampleSelective(@Param("record") Dict record, @Param("example") DictExample example);

	int updateByExample(@Param("record") Dict record, @Param("example") DictExample example);

	int updateByPrimaryKeySelective(Dict record);

	int updateByPrimaryKey(Dict record);

	List<Dict> selectByType(String type);

	Dict selectValue(Map p);

	List<Dict> selectList(Map<String, Object> conditions);

	int selectCount(Map<String, Object> conditions);

	List<Dict> selectDistinctType();

	List<Dict> selectAll();
	
	List <Map<String,Object>>selectDictsByType(String type);
	
	int selectMaxCode(String type);

}